﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Back/Shared/BackBBSSite.Master" Inherits="System.Web.Mvc.ViewPage<Wwtfly.BBS.BackModels.ViewModels.Plays.PlaysShowsViewModel>" %>
<%@ Import Namespace="Wwtfly.Utility" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Eidt</h2>

    <% using (Html.BeginForm(Html.GetEditActionName(Model.PlaysShows.Id),"BackPlays")) {%>
        <%= Html.ValidationSummary(true) %>
        <%=Html.HiddenFor(mc=>mc.PlaysShows.Id) %>
        <%=Html.HiddenFor(mc=>mc.PlaysShows.PlayName) %>
        <fieldset>
            <legend>编辑</legend>
        <div class="editor-label-field-row">
            <div class="editor-label">
                <%= Html.LabelFor(model => model.PlaysShows.Id)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PlaysShows.Id)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                彩种ID：
            </div>
            <div class="editor-field">
             <%=Html.DropDownListFor(model=>model.PlaysShows.LotteryID,Model.PlaysTypeList,"请选择") %>
            </div>
        </div>
        <div class="blank_2">
        </div>

        <div class="editor-label-field-row">
            <div class="editor-label">
                彩种期号：
            </div>
            <div class="editor-field">
                <%=Html.TextBoxFor(model => model.PlaysShows.PlayNo)%>
            </div>
        </div>


        <div class="blank_2">
        </div>
             <div class="editor-label-field-row">
            <div class="editor-label">
                彩种开始时间：
            </div>
            <div class="editor-field">
               <%-- <%=Html.TextBoxFor(model => model.PlaysShows.StartTime)%>--%>
                 <%= Html.TextBox("PlaysShows.StartTime", Model.PlaysShows.StartTime == null ? DateTime.Now : Model.PlaysShows.StartTime)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
             <div class="editor-label-field-row">
            <div class="editor-label">
                彩种截止时间：
            </div>
            <div class="editor-field">
                <%=Html.TextBoxFor(model => model.PlaysShows.EndTime)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
             <div class="editor-label-field-row">
            <div class="editor-label">
                录入开奖号码：
            </div>
            <div class="editor-field">
                <%=Html.TextBoxFor(model => model.PlaysShows.WinLotteryNumber)%> （号码用单空格隔开录入）
            </div>
        </div>
         <div class="editor-label-field-row">
            <div class="editor-label">
                彩种显示状态：
            </div>
            <div class="editor-field">
            
                <%=Html.RadioButton("PlaysShows.PlayState","1",true)%>显示 
                  <%=Html.RadioButton("PlaysShows.PlayState","0")%>不显示
            </div>
        </div>
        <div class="blank_2">
        </div>
            <p>
             <% string returnUrl = Request.GetRequestReturnUrl("returnUrl", Url.Action("Index")); %>
                <input type="submit" value="保存"  id="btn_save" url=" <%=returnUrl %>"/>

            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

        $(document).ready(function () {
            window.validateForm = function () {
                return true;

            };
            window.ajaxForm();
            window.unloadForm();

            $("#PlaysShows_LotteryID").change(function () {
                var index = document.getElementById("PlaysShows_LotteryID").selectedIndex;
                var Text = document.getElementById("PlaysShows_LotteryID").options[index].text;
                $("#PlaysShows_PlayName").val(Text);
            });

        });
    
    </script>
</asp:Content>

